<?php
class RssCont extends Controller {
	function RssCont() {
		parent::Controller();
		$this->load->helper("url");
		$this->data["base"] = $this->config->item('base_url');
		$this->load->model('Rss','',TRUE);
		
		
		$this->load->helper('xml');
		$this->load->database();	
                session_start();
	}
	
	function index() {
		header("Content-Type: application/rss+xml");
		$this->data['encoding'] = 'utf-8';
		$this->data['feed_name'] = 'http://www.risk.com';
		$this->data['feed_url'] = 'http://www.risk.com';
		$this->data['page_description'] = 'Risk Monitoring System';
		$this->data['page_language'] = 'en-ca';
		$this->data['creator_email'] = 'alfinfanther@yahoo.co.id';
	
		$this->data['post'] = $this->Rss->getRecentFeed();
		$this->load->vars($this->data);
		$this->load->view('feed/rss');
	}
	
	
}
?>